Skip to content

Conversation

@yger
Copy link
Collaborator

@yger yger commented Sep 29, 2025

Currently, the way we are computing the similarity extension precomputes a large mask matrix of size n_templates x n_templates x n_channels. But it these numbers are large, this is saturating the memory for no reasons, because actually, we only need one row at a time while computing similarities. This is a patch for the situation and should solve #4150
For some unknow reason, I can not get numba use the python function get_mask_for_sparse_template(), thus there is some code duplication

@alejoe91 alejoe91 changed the title Patch for memory usage in tempalte_similarity Patch for memory usage in template_similarity Sep 30, 2025
@alejoe91 alejoe91 added the postprocessing Related to postprocessing module label Oct 21, 2025
@alejoe91 alejoe91 added this to the 0.103.1 milestone Oct 24, 2025
@samuelgarcia samuelgarcia merged commit 9efde62 into SpikeInterface:main Oct 27, 2025
15 checks passed
@yger yger deleted the memory_template_similarity branch October 28, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

postprocessing Related to postprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants